﻿@model WalkingTec.Mvvm.Demo.ViewModels.MyUserVMs.MyUserVM

<wt:form vm="@Model">
    <wt:row items-per-row="ItemsPerRowEnum.Two">
        <wt:textbox field="Entity.Extra1" />
        <wt:textbox field="Entity.Extra2" />
        <wt:textbox field="Entity.ITCode" />
        <wt:textbox field="Entity.Password" />
        <wt:textbox field="Entity.Email" />
        <wt:textbox field="Entity.Name" />
        <wt:combobox field="Entity.Sex" />
        <wt:textbox field="Entity.CellPhone" />
        <wt:textbox field="Entity.HomePhone" />
        <wt:textbox field="Entity.Address" />
        <wt:textbox field="Entity.ZipCode" />
        <wt:upload field="Entity.PhotoId" />
        <wt:checkbox field="Entity.IsValid" />
        <wt:selector list-vm="RoleListVM" field="SelectedUserRolesIDs" text-bind="RoleListVM.EntityList[0].RoleName">
            <wt:searchpanel vm="RoleListVM">
                <wt:row items-per-row=" ItemsPerRowEnum.Two">
                    <wt:textbox field="RoleListVM.Searcher.RoleCode" />
                    <wt:textbox field="RoleListVM.Searcher.RoleName" />
                </wt:row>
            </wt:searchpanel>
        </wt:selector>
        <wt:checkbox field="SelectedUserGroupsIDs" items="AllUserGroupss" />
    </wt:row>
    <wt:hidden field="Entity.ID" />
    <wt:row align="AlignEnum.Right">
        <wt:submitbutton />
        <wt:closebutton />
    </wt:row>
</wt:form>